package xyz.labmem.main.modular.app.other.entity

import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty

@ApiModel(value = "用户菜单")
@TableName("sys_user_menus")
class SysUserMenus {
    @TableField("user_id")
    @ApiModelProperty(value = "用户ID")
    var userId : String? = null

    @TableField("menu_id")
    @ApiModelProperty(value = "菜单ID")
    var menuId: String? = null


    override fun equals(obj: Any?): Boolean {
        if (this === obj) return true
        if (obj == null) return false
        if (javaClass != obj.javaClass) return false
        val other = obj as SysUserMenus
        if (other.userId == null) {
            return false
        }
        if (menuId == null) {
            if (other.menuId != null) return false
        } else if (!menuId.equals(other.menuId)) return false
        return true
    }
}